package com.zzedu.params;

import com.alibaba.fastjson2.annotation.JSONField;
import com.zzedu.enmuns.FileRelationTypeEnum;
import jakarta.validation.constraints.NotNull;
import org.springframework.web.multipart.MultipartFile;

public class UploadFileParams {

    /**
     * 文件
     */
    @NotNull(message = "文件列表不能为空")
    @JSONField(serialize = false)
    private MultipartFile file;


    /**
     * 文件关联类型
     */
    @NotNull(message = "文件关联类型不能为空")
    private FileRelationTypeEnum relationType;


    /**
     * 关联ID
     */
    private String relationId;

    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }

    public FileRelationTypeEnum getRelationType() {
        return relationType;
    }

    public void setRelationType(FileRelationTypeEnum relationType) {
        this.relationType = relationType;
    }

    public String getRelationId() {
        return relationId;
    }

    public void setRelationId(String relationId) {
        this.relationId = relationId;
    }
}
